import request from "@/utils/request.js";

/**增加责任书模版 */
export function addResponsibilityTem(data) {
  return request({
    url: '/system/template',
    method: 'post',
    data
  })
}

/*  删除责任书模版 */
export function delResponsibilityTem(ids) {
  return request({
    url: `/system/template/${ids}`,
    method: 'delete',
  })
}

/*  修改责任书模版 */
export function editResponsibilityTem(data) {
  return request({
    url: `/system/template`,
    method: 'put',
    data
  })
}


/**查询责任书模版 */
export function searchResponsibilityTem(query){
  return request({
    url: `/system/template/list`,
    method: 'get',
    params: query
  })
}

/*  查询责任书模版详情信息 */
export function detailResponsibilityTem(id) {
  return request({
    url: `/system/template/${id}`,
    method: 'get',
  })
}

